package com.qf.mpswaggershiro.product.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.qf.mpswaggershiro.product.entity.ProductComments;
import com.qf.mpswaggershiro.vo.DetailCommontscountVo;

import java.util.Map;

/**
 * <p>
 * 商品评价  服务类
 * </p>
 *
 * @author cui
 * @since 2023-02-14
 */
public interface IProductCommentsService extends IService<ProductComments> {

    /**
     * 评论
     * @param id
     * @param pageNum
     * @param limit
     * @return
     */
    Map<String, Object> commints(Integer id, Integer pageNum, Integer limit);

    /**
     * 好评率
     * @param id
     * @return
     */
    DetailCommontscountVo detailCommontscount(Integer id);
}
